package org.yray.sip.rtp.server;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.nio.NioDatagramChannel;

public class UrtcpChannelInitializer extends ChannelInitializer<NioDatagramChannel> {
    private UrtcpServerHandler urtcpServerHandler;
    public UrtcpChannelInitializer(UrtcpServerHandler urtcpServerHandler)
    {
        this.urtcpServerHandler=urtcpServerHandler;
    }
    @Override
    protected void initChannel(NioDatagramChannel ch) throws Exception {
        ChannelPipeline pipeline = ch.pipeline();
        pipeline.addLast(urtcpServerHandler);
    }


}
